#ifndef __OBJMGR_H_234902__
#define __OBJMGR_H_234902__

//#include "RoleMgr.h"
#include <assert.h>

bool MgrInit();

class CRoleMgr;
class CMagicExSet;

inline CRoleMgr* RoleManager() { extern CRoleMgr* g_pRoleMgr; assert(g_pRoleMgr); return g_pRoleMgr;}


#ifdef LUA_MAGIC
class CScriptMgr;
inline CScriptMgr* ScriptMgr() { extern CScriptMgr* g_pScriptMgr; assert(g_pScriptMgr); return g_pScriptMgr; }
#else
inline CMagicExSet* MagicExSet() { extern CMagicExSet* g_pMagicExSet; assert(g_pMagicExSet); return g_pMagicExSet; }
#endif

#endif //__OBJMGR_H_234902__